package com.jd.ty.web.util;

import java.util.Comparator;

public class DescTreeMapComparator implements Comparator<Object> {

	public int compare(Object arg1, Object arg2) {
		if(arg1==null||arg2==null) return 0;

		Long tmp1 = Long.valueOf(arg1.toString());
		Long tmp2 = Long.valueOf(arg2.toString());
		if (tmp1 < tmp2) {
			return 1;
		}
		if (tmp1 > tmp2) {
			return -1;
		}
		return 0;
	}

}
